package cn.tedu.charging.order.feign;

import cn.tedu.charging.common.pojo.jsonResult.vo.UserInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import cn.tedu.charging.common.pojo.jsonResult.JsonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 访问用户服务的接口
 */
@FeignClient("userService")
public interface UserClient {
    @GetMapping("/user/info/{userId}")
     JsonResult<UserInfoVO> getUserInfo(@PathVariable Integer userId);
}
